import Layout from '@/layout'

const featureRouter = [
  {
    path: '/feature',
    component: Layout,
    redirect: '/feature/featureList',
    name: 'feature',
    meta: {
      title: '个性化'
    },
    children: [
      { // 微页面列表
        path: 'featureList',
        component: () => import('@/views/shoppingMall/feature/list'),
        name: 'featureList',
        meta: { title: '微页面' }
      },
      { // 微页面编辑页
        path: 'featureCreate',
        component: () => import ('@/views/shoppingMall/feature/create/edit'),
        // component: () => import ('@/views/shoppingMall/personCenter/index/index'),
        name: 'featureCreate',
        hidden: true,
        meta: { title: '编辑微页面' }
      },
      { // 商城列表页
        path: 'classiFication',
        component: () => import ('@/views/shoppingMall/feature/classiFication/index.vue'),
        name: 'classiFication',
        hidden: true,
        meta: { title: '分类页' }
      },
      { // 商城列表页
        path: 'featureTabs',
        component: () => import ('@/views/shoppingMall/feature/featureTabs/index.vue'),
        name: 'featureTabs',
        hidden: true,
        meta: { title: '底部导航页' }
      },
      { // 悬浮导航页
        path: 'floatingMenu',
        component: () => import ('@/views/shoppingMall/feature/floatingMenu/index.vue'),
        name: 'floatingMenu',
        hidden: true,
        meta: { title: '悬浮导航页' }
      },
      { // 商城列表页
        path: 'goodsList',
        component: () => import ('@/views/shoppingMall/feature/goodsList/index.vue'),
        name: 'goodsList',
        hidden: true,
        meta: { title: '商城列表页' }
      },
      { // 个人中心页--电商业
        path: 'mallPersonCenter',
        component: () => import ('@/views/shoppingMall/feature/mallPersonCenter/index.vue'),
        name: 'mallPersonCenter',
        hidden: true,
        meta: { title: '个人中心页' }
      },
      { // 个人中心页--制造业
        path: 'mdiPersonCenter',
        component: () => import ('@/views/shoppingMall/feature/mdiPersonCenter/index.vue'),
        name: 'mdiPersonCenter',
        hidden: true,
        meta: { title: '个人中心页' }
      },
      { // 活动页面配置页
        path: 'activityPage',
        component: () => import ('@/views/shoppingMall/feature/activityPage/index.vue'),
        name: 'activityPage',
        hidden: true,
        meta: { title: '编辑活动页面' }
      },
      { // 工作台页面配置页
        path: 'workbench',
        component: () => import ('@/views/shoppingMall/feature/workbench/index.vue'),
        name: 'workbench',
        hidden: true,
        meta: { title: '编辑工作台页面' }
      },
      { // 工作台页面配置页
        path: 'collaboration',
        component: () => import ('@/views/shoppingMall/feature/collaboration/index.vue'),
        name: 'collaboration',
        hidden: true,
        meta: { title: '编辑协同页面' }
      },
      { // 工作台页面配置页
        path: 'message',
        component: () => import ('@/views/shoppingMall/feature/message/index.vue'),
        name: 'message',
        hidden: true,
        meta: { title: '编辑消息页面' }
      }
      //,
      // { // 微集合
      //   path: 'clump',
      //   component: 'shop/clump',
      //   name: 'clump',
      //   meta: { title: '微集合' }
      // },
      // { // 素材中心
      //   path: 'attachment',
      //   component: 'shop/attachment',
      //   name: 'attachment',
      //   meta: { title: '素材中心' }
      // },
      // { // 钉钉通知
      //   path: 'ding',
      //   component: 'shop/dingding',
      //   name: 'ding',
      //   meta: { title: '钉钉通知' }
      // }
    ]
  }
]
export default featureRouter
